/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.pay.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.pay.model.*;
import com.gm.memberShip.pay.persistence.interfaces.*;
import com.gm.memberShip.pay.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Info  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Info";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_ORDER_ID = "orderId";
	public static final String ALIAS_ORDER_NUMBERS = "orderNumbers";
	public static final String ALIAS_ORDER_MONEY = "orderMoney";
	public static final String ALIAS_PAY_USER_ID = "payUserId";
	public static final String ALIAS_ENTER_IP = "enterIp";
	public static final String ALIAS_ENTER_DATE = "enterDate";
	public static final String ALIAS_BUY_INFO = "buyInfo";
	public static final String ALIAS_IS_PASS = "isPass";
	public static final String ALIAS_USER_ID = "userId";
	public static final String ALIAS_LAST_DATE_TIME = "lastDateTime";
	public static final String ALIAS_PAY_WAY = "payWay";
	
	 
	 
	//columns START
	private java.lang.Integer id;
	private java.lang.String orderId;
	private java.lang.Integer orderNumbers;
	private java.lang.Long orderMoney;
	private java.lang.String payUserId;
	private java.lang.String enterIp;
	private java.util.Date enterDate;
	private java.lang.String buyInfo;
	private java.lang.Integer isPass;
	private java.lang.String userId;
	private java.util.Date lastDateTime;
	private java.lang.String payWay;
	//columns END

	public Info(){
	}

	public Info(
		java.lang.String orderId
	){
		this.orderId = orderId;
	} 
		 
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
		 
	public void setOrderId(java.lang.String value) {
		this.orderId = value;
	}
	
	public java.lang.String getOrderId() {
		return this.orderId;
	}
		 
	public void setOrderNumbers(java.lang.Integer value) {
		this.orderNumbers = value;
	}
	
	public java.lang.Integer getOrderNumbers() {
		return this.orderNumbers;
	}
		 
	public void setOrderMoney(java.lang.Long value) {
		this.orderMoney = value;
	}
	
	public java.lang.Long getOrderMoney() {
		return this.orderMoney;
	}
		 
	public void setPayUserId(java.lang.String value) {
		this.payUserId = value;
	}
	
	public java.lang.String getPayUserId() {
		return this.payUserId;
	}
		 
	public void setEnterIp(java.lang.String value) {
		this.enterIp = value;
	}
	
	public java.lang.String getEnterIp() {
		return this.enterIp;
	}
		 
	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}
	
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}
		 
	public void setBuyInfo(java.lang.String value) {
		this.buyInfo = value;
	}
	
	public java.lang.String getBuyInfo() {
		return this.buyInfo;
	}
		 
	public void setIsPass(java.lang.Integer value) {
		this.isPass = value;
	}
	
	public java.lang.Integer getIsPass() {
		return this.isPass;
	}
		 
	public void setUserId(java.lang.String value) {
		this.userId = value;
	}
	
	public java.lang.String getUserId() {
		return this.userId;
	}
		 
	public void setLastDateTime(java.util.Date value) {
		this.lastDateTime = value;
	}
	
	public java.util.Date getLastDateTime() {
		return this.lastDateTime;
	}
		 
	public void setPayWay(java.lang.String value) {
		this.payWay = value;
	}
	
	public java.lang.String getPayWay() {
		return this.payWay;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("OrderId",getOrderId())
			.append("OrderNumbers",getOrderNumbers())
			.append("OrderMoney",getOrderMoney())
			.append("PayUserId",getPayUserId())
			.append("EnterIp",getEnterIp())
			.append("EnterDate",getEnterDate())
			.append("BuyInfo",getBuyInfo())
			.append("IsPass",getIsPass())
			.append("UserId",getUserId())
			.append("LastDateTime",getLastDateTime())
			.append("PayWay",getPayWay())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getOrderId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Info == false) return false;
		if(this == obj) return true;
		Info other = (Info)obj;
		return new EqualsBuilder()
			.append(getOrderId(),other.getOrderId())
			.isEquals();
	}
}

